package tech.aichan.AiQA.model.dto.item;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * @author mengyu
 * @date 2024/03/03 10:12
 */
@Data
public class ItemUpdateRequest implements Serializable {
    @NotNull(message = "物品id不能为空")
    private Long id;
    private String itemName;
    private List<String> tags;

    @Min(value = 1,message = "价格最低为1元")
    private Double price;

    @Serial
    private static final long serialVersionUID = 1L;
}
